//
//  ZSRegisterVC.m
//  ROSE
//
//  Created by Apple on 2018/6/4.
//  Copyright © 2018年 HeNanZhongDunYunAn. All rights reserved.
//

#import "ZSRegisterVC.h"

@interface ZSRegisterVC ()

@end

@implementation ZSRegisterVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"注册";
    
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 60, 20)];
    [btn setImage:[UIImage imageNamed:@"返回"] forState:UIControlStateNormal];
    [btn.imageView setContentMode:UIViewContentModeScaleAspectFit];
    [btn setImageEdgeInsets:UIEdgeInsetsMake(0, -50, 0, 0)];
    [btn addTarget:self action:@selector(popSelector) forControlEvents:UIControlEventTouchUpInside];
    btn.tintColor = [UIColor whiteColor];
    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithCustomView:btn];
    self.navigationItem.leftBarButtonItem = item;
    
    [self setUpViews];
}

- (UIStatusBarStyle)preferredStatusBarStyle{
    return UIStatusBarStyleLightContent;
}

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    self.navigationController.navigationBarHidden = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)setUpViews{
    UIScrollView *containerView = [[UIScrollView alloc] initWithFrame:(CGRectMake(0, 0, size_width, size_height-80))];
    [self.view addSubview:containerView];
    
    NSArray *titles = @[@"账户", @"密码", @"再次确认密码", @"邀请码", @"验证"];
    for (int i=0; i<5; i++) {
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:(CGRectMake(25, 44+i*75.5, size_width-25*2, 15))];
        
    }
}

- (void)popSelector {
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

@end
